package io.github.cunyu1943;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 *
 * @Package : io.github.cunyu1943
 * @ClassName : LengthTest.java
 * @CreateTime : 2022/11/29 22:16
 * @Version : 1.0
 * @Author : 村雨遥
 * @Email : 747731461@qq.com
 * @公众号 : 村雨遥
 * @Website : https://cunyu1943.github.io/JavaPark
 * @Description : 求字符串长度
 */
public class LengthTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("输入一个字符串");

        String str = scanner.next();

        System.out.println("输入的字符串的长度为: " + str.length());
    }
}
